/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.History_Of_InformationServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.History_Of_InformationServiceSoap
 * @generated
 */
public class History_Of_InformationSoap implements Serializable {
	public static History_Of_InformationSoap toSoapModel(
		History_Of_Information model) {
		History_Of_InformationSoap soapModel = new History_Of_InformationSoap();

		soapModel.setHistoryInfoId(model.getHistoryInfoId());
		soapModel.setApplicationId(model.getApplicationId());
		soapModel.setUserId(model.getUserId());
		soapModel.setOldApplicationId(model.getOldApplicationId());

		return soapModel;
	}

	public static History_Of_InformationSoap[] toSoapModels(
		History_Of_Information[] models) {
		History_Of_InformationSoap[] soapModels = new History_Of_InformationSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static History_Of_InformationSoap[][] toSoapModels(
		History_Of_Information[][] models) {
		History_Of_InformationSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new History_Of_InformationSoap[models.length][models[0].length];
		}
		else {
			soapModels = new History_Of_InformationSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static History_Of_InformationSoap[] toSoapModels(
		List<History_Of_Information> models) {
		List<History_Of_InformationSoap> soapModels = new ArrayList<History_Of_InformationSoap>(models.size());

		for (History_Of_Information model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new History_Of_InformationSoap[soapModels.size()]);
	}

	public History_Of_InformationSoap() {
	}

	public String getPrimaryKey() {
		return _historyInfoId;
	}

	public void setPrimaryKey(String pk) {
		setHistoryInfoId(pk);
	}

	public String getHistoryInfoId() {
		return _historyInfoId;
	}

	public void setHistoryInfoId(String historyInfoId) {
		_historyInfoId = historyInfoId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getOldApplicationId() {
		return _oldApplicationId;
	}

	public void setOldApplicationId(String oldApplicationId) {
		_oldApplicationId = oldApplicationId;
	}

	private String _historyInfoId;
	private String _applicationId;
	private String _userId;
	private String _oldApplicationId;
}